<%@page import="org.xiaom.butler.bean.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%!Content bean;%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理</title>
</head>
<body>
	<div>
		<a href="../index.jsp">首页</a>-><a href="../hotel/list.jsp">酒店管理</a>
		<a href="../department/list.jsp?hotel=${department.hotel.id}">->部门管理</a><a>->内容管理</a>
	</div>
	<br/>
	<div>
		<a href=""  style="color: red;text-decoration: none;" >${department.hotel.name }</a>
		<br/>
		<br>
		<a href=""  style="color: red;text-decoration: none;" > ${department.chName }</a>
	</div> 
	<br/>
	<div>
		<a href="./add.jsp?department=${department.id }">添加</a>
	</div>
	<br />
	<table width="700" height="101" border="1">
		<tr>
			<th width="600px">名称</th>
			<th width="120px" align="center">操作</th>
		</tr>
		<%
			List<Content> list =((Department) request.getAttribute("department")).getContents();
			for (int i = 0; i < list.size(); i++) {
				bean = list.get(i);
		%>
		<tr>
			<td><a href="JavaScript:tip()"><%=bean.getChName()%></a>
			</td>
			<td><div style="text-align: center;">
					<a href="./delete.do?id=<%=bean.getId()%>">删除</a> | <a
						href="./edit.jsp?id=<%=bean.getId()%>">修改</a>
				</div>
			</td>
		</tr>
		<%
			}
		%>
	</table>
</body>
<script>
function tip(){
	alert("已是最末级分类.");
}
</script>
</html>